<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Struts 2 File Upload</title>
		<script language="JavaScript" src="validation-framework.js"></script>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	</head>
	<body>
		<div id="error" style="color: blue; font-weight: bold;"></div>
		<s:form action="fileUpload" method="post"
			onsubmit="return doValidate('form2')" name="form2" id="form2"
			enctype="multipart/form-data">
			<s:file name="myFile" label="图片文件" />
			<s:textfield name="caption" label="图片名称" />
			<s:submit value="上传图片"></s:submit>
		</s:form>
	</body>
</html>
